// task-detail/pages/registration/index.js
Page({
  onChange(event) {
    this.setData({ activeNames: event.detail });
  },
  afterRead(e) {
    console.log(e.detail.file);
    const { file } = e.detail
    const tempFilePaths = file.tempFilePath
    wx.uploadFile({
      url: wx.$http.baseURL + '/driver/files/upload',
      filePath: tempFilePaths[0],
      name: 'file',
      success: (res) =>{
        console.log(res);
      }
    })
  }
})